﻿using System;
using NHibernate.Mapping.Attributes;

namespace RHD.Data.Model {
	[Serializable, Class(Lazy = false)]
	public class Users : BaseModel {
		[Id(0, Name = "ID", Column = "UserID", TypeType = typeof(int))]
		[Generator(1, Class = "native")]
		public virtual Int32? ID { get; set; }

		[Property(TypeType = typeof(String), NotNull = true)]
		public virtual String Name { get; set; }

		[Property(TypeType = typeof(String), NotNull = true, Unique = true)]
		public virtual String Email { get; set; }

		[Property(TypeType = typeof(String), NotNull = true)]
		public virtual String Password { get; set; }

		[Property(TypeType = typeof(DateTime), NotNull = true)]
		public virtual DateTime? CreationDate { get; set; }
	}
}